home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 32 / Amiga Format AFCD32 (Nov 1998, Issue 117).iso / -seriously_amiga- / programming / other / classfree / cfscrollerclass / cfscroller.doc next >
Text File  |  1998-08-10  |  2KB  |  85 lines

  1. Class:                  CFscrollergclass
  2. Author:                 Anders E. Andersen <andersa@fys.ku.dk>
  3. Superclass:             gadgetclass
  4. Desciption:             GadTools scroller replacement
  5. Include File:           "CFscroller.h"
  6.  
  7.  
  8.  
  9. New Methods:
  10. ------------
  11.  
  12. None
  13.  
  14.  
  15. Changed Methods:
  16. ----------------
  17.  
  18. OM_NEW - Creates the propgadget, frame, arrow images and buttons.
  19.  
  20. OM_SET - Supports CFSC_Top, CFSC_Visible and CFSC_Total.
  21.  
  22. OM_GET - Only works on the regular gadgetclass attributes.
  23.  
  24. OM_UPDATE - This method recieves messages from the sub gadgets
  25. and changes the attributes accordingly. It sends OM_NOTIFY
  26. messages to itself every time the CFSC_Top value changes.
  27. These messages have the CFSC_Top and GA_ID attributes in the
  28. attribute list.
  29.  
  30. GM_HITTEST
  31. GM_GOACTIVE
  32. GM_HANDLEINPUT
  33. GM_GOINACTIVE - These just passes the message down in the
  34. hierachy. The functianality depends on what sub-gadget that is
  35. activated.
  36.  
  37. GM_RENDER - Redraws all gadgets.
  38.  
  39. See also the notes section of the readme file.
  40.  
  41.  
  42. Attributes:
  43. -----------
  44.  
  45. GA_Left, GA_Top.
  46.  
  47. Positions the scroller.
  48.  
  49.  
  50. GA_Width, GA_Height.
  51.  
  52. Depending on CFSC_Freedom, this controls either the width
  53. or the height of the gadget (see also CFSC_Size and the
  54. readme file).
  55.  
  56.  
  57. GA_DrawInfo
  58.  
  59. IMPORTANT! The scroller object can't be created without this!
  60. Get it with GetScreenDrawInfo().
  61.  
  62.  
  63. CFSC_Freedom, CFSC_Top, CFSC_Visible, CFSC_Total.
  64.  
  65. Works like the similar attributes of the GadTools
  66. SCROLLER_KIND gadget.
  67.  
  68.  
  69. CFSC_Size.
  70.  
  71. Depending on CFSC_Freedom, this controls either the width
  72. or the height of the gadget (see also the readme file).
  73.  The sizes in pixels are:
  74.  
  75.  CFSC_Freedom -|-    FREEVERT      -|-    FREEHORIZ
  76.  CFSC_Size     |  Width |  Height   |   Width  | Height
  77.  --------------+--------+-----------+----------+---------
  78.  SIZE_LOWRES   |   13   | GA_Height | GA_Width |   11
  79.  SIZE_MEDRES   |   18   | GA_Height | GA_Width |   10
  80.  SIZE_HIRES    |   23   | GA_Height | GA_Width |   22
  81.  
  82.  
  83.  
  84.  
  85.